from django.conf.urls import patterns, url



from weather.views.eventsofficial_views import *
urlpatterns = patterns('',
    url(
        regex=r'^eventsofficial/archive/$',
        view=EventsOfficialArchiveIndexView.as_view(),
        name='weather_eventsofficial_archive_index'
    ),
    url(
        regex=r'^eventsofficial/create/$',
        view=EventsOfficialCreateView.as_view(),
        name='weather_eventsofficial_create'
    ),
    url(
        regex=r'^eventsofficial/(?P<year>\d{4})/'
               '(?P<month>\d{1,2})/'
               '(?P<day>\d{1,2})/'
               '(?P<pk>\d+?)/$',
        view=EventsOfficialDateDetailView.as_view(),
        name='weather_eventsofficial_date_detail'
    ),
    url(
        regex=r'^eventsofficial/archive/(?P<year>\d{4})/'
               '(?P<month>\d{1,2})/'
               '(?P<day>\d{1,2})/$',
        view=EventsOfficialDayArchiveView.as_view(),
        name='weather_eventsofficial_day_archive'
    ),
    url(
        regex=r'^eventsofficial/(?P<pk>\d+?)/delete/$',
        view=EventsOfficialDeleteView.as_view(),
        name='weather_eventsofficial_delete'
    ),
    url(
        regex=r'^eventsofficial/(?P<pk>\d+?)/$',
        view=EventsOfficialDetailView.as_view(),
        name='weather_eventsofficial_detail'
    ),
    url(
        regex=r'^eventsofficial/$',
        view=EventsOfficialListView.as_view(),
        name='weather_eventsofficial_list'
    ),
    url(
        regex=r'^eventsofficial/archive/(?P<year>\d{4})/'
               '(?P<month>\d{1,2})/$',
        view=EventsOfficialMonthArchiveView.as_view(),
        name='weather_eventsofficial_month_archive'
    ),
    url(
        regex=r'^eventsofficial/today/$',
        view=EventsOfficialTodayArchiveView.as_view(),
        name='weather_eventsofficial_today_archive'
    ),
    url(
        regex=r'^eventsofficial/(?P<pk>\d+?)/update/$',
        view=EventsOfficialUpdateView.as_view(),
        name='weather_eventsofficial_update'
    ),
    url(
        regex=r'^eventsofficial/archive/(?P<year>\d{4})/'
               '(?P<month>\d{1,2})/'
               'week/(?P<week>\d{1,2})/$',
        view=EventsOfficialWeekArchiveView.as_view(),
        name='weather_eventsofficial_week_archive'
    ),
    url(
        regex=r'^eventsofficial/archive/(?P<year>\d{4})/$',
        view=EventsOfficialYearArchiveView.as_view(),
        name='weather_eventsofficial_year_archive'
    ),
)


from weather.views.userpersonal_views import *
urlpatterns += patterns('',
    url(
        regex=r'^userpersonal/archive/$',
        view=UserPersonalArchiveIndexView.as_view(),
        name='weather_userpersonal_archive_index'
    ),
    url(
        regex=r'^userpersonal/create/$',
        view=UserPersonalCreateView.as_view(),
        name='weather_userpersonal_create'
    ),
    url(
        regex=r'^userpersonal/(?P<year>\d{4})/'
               '(?P<month>\d{1,2})/'
               '(?P<day>\d{1,2})/'
               '(?P<pk>\d+?)/$',
        view=UserPersonalDateDetailView.as_view(),
        name='weather_userpersonal_date_detail'
    ),
    url(
        regex=r'^userpersonal/archive/(?P<year>\d{4})/'
               '(?P<month>\d{1,2})/'
               '(?P<day>\d{1,2})/$',
        view=UserPersonalDayArchiveView.as_view(),
        name='weather_userpersonal_day_archive'
    ),
    url(
        regex=r'^userpersonal/(?P<pk>\d+?)/delete/$',
        view=UserPersonalDeleteView.as_view(),
        name='weather_userpersonal_delete'
    ),
    url(
        regex=r'^userpersonal/(?P<pk>\d+?)/$',
        view=UserPersonalDetailView.as_view(),
        name='weather_userpersonal_detail'
    ),
    url(
        regex=r'^userpersonal/$',
        view=UserPersonalListView.as_view(),
        name='weather_userpersonal_list'
    ),
    url(
        regex=r'^userpersonal/archive/(?P<year>\d{4})/'
               '(?P<month>\d{1,2})/$',
        view=UserPersonalMonthArchiveView.as_view(),
        name='weather_userpersonal_month_archive'
    ),
    url(
        regex=r'^userpersonal/today/$',
        view=UserPersonalTodayArchiveView.as_view(),
        name='weather_userpersonal_today_archive'
    ),
    url(
        regex=r'^userpersonal/(?P<pk>\d+?)/update/$',
        view=UserPersonalUpdateView.as_view(),
        name='weather_userpersonal_update'
    ),
    url(
        regex=r'^userpersonal/archive/(?P<year>\d{4})/'
               '(?P<month>\d{1,2})/'
               'week/(?P<week>\d{1,2})/$',
        view=UserPersonalWeekArchiveView.as_view(),
        name='weather_userpersonal_week_archive'
    ),
    url(
        regex=r'^userpersonal/archive/(?P<year>\d{4})/$',
        view=UserPersonalYearArchiveView.as_view(),
        name='weather_userpersonal_year_archive'
    ),
)


from weather.views.userofficial_views import *
urlpatterns += patterns('',
    url(
        regex=r'^userofficial/archive/$',
        view=UserOfficialArchiveIndexView.as_view(),
        name='weather_userofficial_archive_index'
    ),
    url(
        regex=r'^userofficial/create/$',
        view=UserOfficialCreateView.as_view(),
        name='weather_userofficial_create'
    ),
    url(
        regex=r'^userofficial/(?P<year>\d{4})/'
               '(?P<month>\d{1,2})/'
               '(?P<day>\d{1,2})/'
               '(?P<pk>\d+?)/$',
        view=UserOfficialDateDetailView.as_view(),
        name='weather_userofficial_date_detail'
    ),
    url(
        regex=r'^userofficial/archive/(?P<year>\d{4})/'
               '(?P<month>\d{1,2})/'
               '(?P<day>\d{1,2})/$',
        view=UserOfficialDayArchiveView.as_view(),
        name='weather_userofficial_day_archive'
    ),
    url(
        regex=r'^userofficial/(?P<pk>\d+?)/delete/$',
        view=UserOfficialDeleteView.as_view(),
        name='weather_userofficial_delete'
    ),
    url(
        regex=r'^userofficial/(?P<pk>\d+?)/$',
        view=UserOfficialDetailView.as_view(),
        name='weather_userofficial_detail'
    ),
    url(
        regex=r'^userofficial/$',
        view=UserOfficialListView.as_view(),
        name='weather_userofficial_list'
    ),
    url(
        regex=r'^userofficial/archive/(?P<year>\d{4})/'
               '(?P<month>\d{1,2})/$',
        view=UserOfficialMonthArchiveView.as_view(),
        name='weather_userofficial_month_archive'
    ),
    url(
        regex=r'^userofficial/today/$',
        view=UserOfficialTodayArchiveView.as_view(),
        name='weather_userofficial_today_archive'
    ),
    url(
        regex=r'^userofficial/(?P<pk>\d+?)/update/$',
        view=UserOfficialUpdateView.as_view(),
        name='weather_userofficial_update'
    ),
    url(
        regex=r'^userofficial/archive/(?P<year>\d{4})/'
               '(?P<month>\d{1,2})/'
               'week/(?P<week>\d{1,2})/$',
        view=UserOfficialWeekArchiveView.as_view(),
        name='weather_userofficial_week_archive'
    ),
    url(
        regex=r'^userofficial/archive/(?P<year>\d{4})/$',
        view=UserOfficialYearArchiveView.as_view(),
        name='weather_userofficial_year_archive'
    ),
)


from weather.views.forecasting_views import *
urlpatterns += patterns('',
    url(
        regex=r'^forecasting/archive/$',
        view=ForecastingArchiveIndexView.as_view(),
        name='weather_forecasting_archive_index'
    ),
    url(
        regex=r'^forecasting/create/$',
        view=ForecastingCreateView.as_view(),
        name='weather_forecasting_create'
    ),
    url(
        regex=r'^forecasting/(?P<year>\d{4})/'
               '(?P<month>\d{1,2})/'
               '(?P<day>\d{1,2})/'
               '(?P<pk>\d+?)/$',
        view=ForecastingDateDetailView.as_view(),
        name='weather_forecasting_date_detail'
    ),
    url(
        regex=r'^forecasting/archive/(?P<year>\d{4})/'
               '(?P<month>\d{1,2})/'
               '(?P<day>\d{1,2})/$',
        view=ForecastingDayArchiveView.as_view(),
        name='weather_forecasting_day_archive'
    ),
    url(
        regex=r'^forecasting/(?P<pk>\d+?)/delete/$',
        view=ForecastingDeleteView.as_view(),
        name='weather_forecasting_delete'
    ),
    url(
        regex=r'^forecasting/(?P<pk>\d+?)/$',
        view=ForecastingDetailView.as_view(),
        name='weather_forecasting_detail'
    ),
    url(
        regex=r'^forecasting/$',
        view=ForecastingListView.as_view(),
        name='weather_forecasting_list'
    ),
    url(
        regex=r'^forecasting/archive/(?P<year>\d{4})/'
               '(?P<month>\d{1,2})/$',
        view=ForecastingMonthArchiveView.as_view(),
        name='weather_forecasting_month_archive'
    ),
    url(
        regex=r'^forecasting/today/$',
        view=ForecastingTodayArchiveView.as_view(),
        name='weather_forecasting_today_archive'
    ),
    url(
        regex=r'^forecasting/(?P<pk>\d+?)/update/$',
        view=ForecastingUpdateView.as_view(),
        name='weather_forecasting_update'
    ),
    url(
        regex=r'^forecasting/archive/(?P<year>\d{4})/'
               '(?P<month>\d{1,2})/'
               'week/(?P<week>\d{1,2})/$',
        view=ForecastingWeekArchiveView.as_view(),
        name='weather_forecasting_week_archive'
    ),
    url(
        regex=r'^forecasting/archive/(?P<year>\d{4})/$',
        view=ForecastingYearArchiveView.as_view(),
        name='weather_forecasting_year_archive'
    ),
)
